package net.pluce.nxt.network;

/**
 * Interface defining a DistanceMessage, sent by the robot once he stops after a straight line.
 * Instances should be sent as event objects by the NXJ connection. Classes implementing this interface should be value objects.
 * @see net.pluce.nxt.network.impl.Message
 * @author Pluce
 */
public interface DistanceMessage {
	/**
	 * Returns the distance (in centimeters) the robot has run since the last message.
	 * @return a distance in cm
	 */
	public int getDistance();
	
	/**
	 * Returns the elapsed time (in milliseconds) since the last message
	 * @return a time interval in ms
	 */
	public int getTime();
}
